findMaterialShapeDrawable

fun findMaterialShapeDrawable(root: Drawable): MaterialShapeDrawable?(source)

Returns the first MaterialShapeDrawable found if root is or contains one.

This is provided as a convenience to help ensure that MaterialShapeDrawableViewPathProvider will work correctly with a given Drawable at runtime.